<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<div id='app'>Ace</div>

<body>
    <script>
        // let div = document.createElement('div')
        // div.innerHTML = 'Simba'
        // div.classList.add('demo')

        document.body.appendChild('div')
        let app = document.querySelector('#app')
        // // let ace=document

        // app.remove()

        app.onclick = function () {
            app.remove()
        }
    </script>
</body>

</html>